initremote: Support --json and --json-error-messages
authorJoey Hess <joeyh@joeyh.name>
Wed, 10 May 2023 18:01:46 +0000 (14:01 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 10 May 2023 18:03:40 +0000 (14:03 -0400)
commitb3cc8dbacb423b41781a7e7d5260f9602803b498
treeb8b564314db23addde0f5bc42879d9ec85277290
parent9812d9aaec57ec28f221b219dd6fbbe521370107
initremote: Support --json and --json-error-messages

Including special --whatelse handling.

Otherwise, it seems unlikely to be too useful, but who knows.

Refactored code to call starting before displaying error messages.
This makes the error messages be captured by --json-error-messages

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
CHANGELOG
Command/InitRemote.hs
doc/git-annex-initremote.mdwn
doc/todo/--json_for_unannex__and_ideally_any_other_command_.mdwn
doc/todo/provide_machine_readable___40__--json__63____41___version_of_initremote_--whatelse.mdwn
doc/todo/provide_machine_readable___40__--json__63____41___version_of_initremote_--whatelse/comment_2_e9647b34aa79c414faf0f57ba17e6af4._comment [new file with mode: 0644]